﻿@model Project_KhuyenMaiVang.Models.DonDatHang

@{
    ViewBag.Title = "update";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
    List<Project_KhuyenMaiVang.Models.TinhTrangDonDatHangDTO> orderStates = ViewBag.OrderStates;
    var dsTinhTrangDonHang = new SelectList(orderStates, "IdTinhTrangDonDatHang", "TinhTrang");
}

<h2>Cập nhật tình trạng đơn đặt hàng</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Đơn đặt hàng</legend>

        <div class="editor-label">            
            @Html.Label("Tình trạng đơn đặt hàng");
        </div>
        <div>
            @Html.DropDownListFor(model => model.TinhTrangDonHang,dsTinhTrangDonHang)                  
        </div>
        <div>
            @Html.HiddenFor(model => model.MaDonDatHang)                  
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Quay lại", "QuanLyDonDatHang", "Admin")
</div>

